go/types.Checker.softErrorf (method)

27 uses

	go/types (current package)
		assignments.go#L593: 		check.softErrorf(pos, NoNewVar, "no new variables on left side of :=")
		builtins.go#L998: 		check.softErrorf(x, code, "%s not supported as argument to built-in %s for go1.18 (see go.dev/issue/50937)", x, predeclaredFuncs[id].name)
		call.go#L164: 			check.softErrorf(atPos(pos), InvalidTypeArg, "%s", err)
		decl.go#L861: 		check.softErrorf(fdecl.Name, BadDecl, "generic function is missing function body")
		errors.go#L246: func (check *Checker) softErrorf(at positioner, code Code, format string, args ...any) {
		labels.go#L44: 			check.softErrorf(lbl, UnusedLabel, "label %s declared and not used", lbl.name)
		labels.go#L153: 							check.softErrorf(
		resolver.go#L416: 							check.softErrorf(d.decl.Type.TypeParams.List[0], code, "func %s must have no type parameters", name)
		resolver.go#L421: 							check.softErrorf(d.decl.Name, code, "func %s must have no arguments and no return values", name)
		resolver.go#L431: 							check.softErrorf(obj, MissingInitBody, "missing function body")
		resolver.go#L732: 		check.softErrorf(obj, UnusedImport, "%q imported and not used", path)
		resolver.go#L734: 		check.softErrorf(obj, UnusedImport, "%q imported as %s and not used", path, obj.name)
		signature.go#L367: 				check.softErrorf(t, MisplacedDotDotDot, "can only use ... with final parameter in list")
		stmt.go#L70: 		check.softErrorf(v, UnusedVar, "declared and not used: %s", v.name)
		stmt.go#L717: 				check.softErrorf(lhs, NoNewVar, "no new variable on left side of :=")
		stmt.go#L792: 				check.softErrorf(lhs, UnusedVar, "%s declared and not used", lhs.Name)
		stmt.go#L858: 			check.softErrorf(s, InvalidPostDecl, "cannot declare in post statement")
		stmt.go#L901: 			check.softErrorf(&x, InvalidRangeExpr, "cannot range over %s: %s", &x, cause)
		stmt.go#L903: 			check.softErrorf(&x, InvalidRangeExpr, "cannot range over %s", &x)
		stmt.go#L905: 			check.softErrorf(sKey, InvalidIterVar, "range over %s permits no iteration variables", &x)
		stmt.go#L907: 			check.softErrorf(sValue, InvalidIterVar, "range over %s permits only one iteration variable", &x)
		stmt.go#L909: 			check.softErrorf(sExtra, InvalidIterVar, "range clause permits at most two iteration variables")
		stmt.go#L1004: 					check.softErrorf(lhs, InvalidRangeExpr, "cannot use iteration variable of type %s", x.typ)
		typexpr.go#L179: 					check.softErrorf(e, MisplacedConstraintIface, "cannot use type %s outside a type constraint: interface is (or embeds) comparable", typ)
		typexpr.go#L181: 					check.softErrorf(e, MisplacedConstraintIface, "cannot use type %s outside a type constraint: interface contains type constraints", typ)
		typexpr.go#L495: 				check.softErrorf(atPos(pos), InvalidTypeArg, "%v", err)
		union.go#L131: 				check.softErrorf(tlist[i], InvalidUnion, "overlapping terms %s and %s", t, terms[j])